package com.aiwei.tdjk.dao.extend;

import com.aiwei.tdjk.dao.mbg.OrganizationMapper;
import com.aiwei.tdjk.entity.Organization;

import java.util.List;


public interface OrganizationExtendMapper extends OrganizationMapper{


    int insertSelective(Organization organization);
    /**
     * 根据名称模糊查询组织机构
     * @param name
     * @return
     */
    List<Organization> findAllByName(String name);


    void deleteSelfAndChild(long id, String makeSelfAsNewParentIds);
    /**
     * 修改子节点状态
     * @param organization
     * @return
     */
    void updateChildIsShow(Organization organization);
}